import { IconFont } from '@nutui/icons-react-taro'

const Icon = ({ name, size = 20, color }: { name: string; size?: number; color?: string }) => {
  return <IconFont fontClassName='iconfont' classPrefix='icon' name={name} size={size} style={{ color: color }} />
}

export default Icon
